"""
__author__ = '霍格沃兹测试开发学社'
__desc__ = '更多测试开发技术探讨，请访问：https://ceshiren.com/t/topic/15860'
"""
from selenium.webdriver.common.by import By

from web_auto_testing.page.base_page import BasePage


class OrderPage(BasePage):
    """首页"""

    _TEXT_ORDER = (By.CSS_SELECTOR, ".van-card__title.van-multi-ellipsis--l2")

    def get_order_text(self):
        """获取订单列表"""
        order_list = self.do_finds(self._TEXT_ORDER)
        order_text = [i.text for i in order_list]
        # 返货订单商品名称列表
        return order_text
